<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('敏感数据展示设置')" />
</head>
<body class="white-bg">
	<div class="wrapper wrapper-content animated fadeInRight ibox-content">
		<form class="form-horizontal m" id="form-user-setShowSensitive">
			<input name="userId"  type="hidden"  th:value="${user.userId}" />
			<div class="form-group">
				<label class="col-sm-3 control-label">登录名称：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" readonly="true" name="loginName" th:value="${user.loginName}"/>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">是否展示手机号：</label>
				<div class="col-sm-8">
					<div class="radio-box">
						<input name="isShowSensitivePhone" class="form-control"
							   th:value="0" th:checked="${user.isShowSensitivePhone} == '0'"
							   type="radio" required><label>否</label>
					</div>
					<div class="radio-box">
						<input name="isShowSensitivePhone" class="form-control"
							   th:value="1" th:checked="${user.isShowSensitivePhone} == '1'"
							   type="radio" required><label>是</label>
					</div>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">是否展示微信号：</label>
				<div class="col-sm-8">
					<div class="radio-box">
						<input name="isShowSensitiveWeixin" class="form-control"
							   th:value="0" th:checked="${user.isShowSensitiveWeixin} == '0'"
							   type="radio" required><label>否</label>
					</div>
					<div class="radio-box">
						<input name="isShowSensitiveWeixin" class="form-control"
							   th:value="1" th:checked="${user.isShowSensitiveWeixin} == '1'"
							   type="radio" required><label>是</label>
					</div>
				</div>
			</div>
		</form>
	</div>
	<th:block th:include="include :: footer" />
	<script type="text/javascript">
		$("#form-user-setShowSensitive").validate({
			rules:{

			},
			focusCleanup: true
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	        	$.operate.save(ctx + "system/user/setShowSensitive/update", $('#form-user-setShowSensitive').serialize());
	        }
	    }
	</script>
</body>

</html>
